package com.yswee.framework.net.rbd;

import com.yswee.framework.net.Entity;
import com.yswee.framework.net.engine.IEngineTask;



public class RBDEntity extends Entity {
	
	private static final long serialVersionUID = -6251981513230521332L;
	
	private String filePath;
	
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	
	void setMessage(String message) {
		this.message = message;
	}
	
	private long totalSize;
	
	/**
	 * 总字节大小
	 * @return
	 */
	public long getTotalSize() {
		return totalSize;
	}
	
	private long curentSize;

	/**
	 * 已下载字节大小
	 * @return
	 */
	public long getCurentSize() {
		return curentSize;
	}

	void setDownloadProgress(long curentSize, long totalSize) {
		this.curentSize = curentSize;
		this.totalSize = totalSize;
	}
	
	public RBDEntity() {
		super();
	}
	
	@Override
	protected int getDefaultPriority() {
		return IEngineTask.FILEPRIORITY;
	}
}
